package com.fiveflavors.suittar.gui.notifier;

import java.util.List;

import com.fiveflavors.suittar.gui.utils.Converter;

import twitter4j.Status;

public class SuittarNotifierConsole implements SuittarNotifier {

	public boolean isSupported() {
		return true;
	}

	public boolean notifyTimeLine(List<Status> statusList, boolean show) {
		if (show) {
			for (Status status: statusList) {
				String title = status.getUser().getScreenName() + " " + Converter.convertUTCString2JSTString(status.getCreatedAt());
				String description = status.getText();
				System.out.println("[" + title + "]");
				System.out.println("--");
				System.out.println(description);
				System.out.println("--");
			}
		}
		return false;
	}

}
